<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:70:"E:\sources\member\v5\public/../application/index\view\index\index.html";i:1549977846;s:61:"E:\sources\member\v5\application\index\view\public\title.html";i:1548334499;s:62:"E:\sources\member\v5\application\index\view\public\header.html";i:1548411481;s:63:"E:\sources\member\v5\application\index\view\public\leftNav.html";i:1549950102;s:60:"E:\sources\member\v5\application\index\view\public\foot.html";i:1548334499;}*/ ?>
<!doctype html>
<html>

<head>
  <!-- css文件 -->
  <meta charset="utf-8">
<title>后台</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="/static/admin/assets/i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="/static/admin/assets/i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<link rel="stylesheet" href="/static/admin/assets/css/amazeui.min.css" />
<link rel="stylesheet" href="/static/admin/assets/css/admin.css">
<link rel="stylesheet" href="/static/admin/assets/css/app.css">
<link rel="stylesheet" href="/static/admin/assets/css/amazeui.switch.css">
<script src="/static/admin/assets/js/echarts.min.js"></script>
<!-- jquery -->
<script src="/static/common/jquery.min.js"></script>
<!-- layer 弹窗插件-->
<script src="/static/common/layer/layer.js"></script>
</head>

<body data-type="index">
  <!-- 头部 -->
  <header class="am-topbar am-topbar-inverse admin-header">
  <div class="am-topbar-brand">
    <a href="javascript:;" class="tpl-logo">
      <img src="/static/admin/assets/img/logo.png" alt="">
    </a>
  </div>
  <div class="am-icon-list tpl-header-nav-hover-ico am-fl am-margin-right">
  </div>
  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span
      class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
      <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen" class="tpl-header-list-link"><span
            class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
      <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
        <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
          <span class="tpl-header-list-user-nick"><?php echo \think\Request::instance()->session('user'); ?></span><span class="tpl-header-list-user-ico"> <img src="/static/admin/assets/img/user01.png"></span>
        </a>
        <ul class="am-dropdown-content">
          <li><a href="<?php echo url('admin/edit',['id'=>\think\Request::instance()->session('id')]); ?>"><span class="am-icon-bell-o"></span> 资料</a></li>
          <li><a href="<?php echo url('Admin/logout'); ?>"><span class="am-icon-power-off"></span> 退出</a></li>
        </ul>
      </li>
      <li><a href="<?php echo url('Admin/logout'); ?>"  class="tpl-header-list-link"><span class="am-icon-sign-out tpl-header-list-ico-out-size"></span></a></li>
    </ul>
  </div>
</header>

  <div class="tpl-page-container tpl-page-header-fixed">
    <!-- 左侧导航 -->
    
  <div class="tpl-left-nav tpl-left-nav-hover">
    <div class="tpl-left-nav-title">
      会员管理系统V5版
    </div>
    <div class="tpl-left-nav-list">
      <ul class="tpl-left-nav-menu">
        <li class="tpl-left-nav-item">
          <a href="<?php echo url('index/index'); ?>" class="nav-link active">
            <i class="am-icon-home"></i>
            <span>首页</span>
          </a>
        </li>
        <li class="tpl-left-nav-item">
          <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
            <i class="am-icon-user"></i>
            <span>管理员</span>
            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
          </a>
          <ul class="tpl-left-nav-sub-menu"  style="display: block;">
            <li>
              <a href="<?php echo url('admin/lst'); ?>">
                <i class="am-icon-angle-right"></i>
                <span>管理员列表</span>
                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
              </a>
            </li>
          </ul>
        </li>
        <li class="tpl-left-nav-item">
          <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
            <i class="am-icon-group"></i>
            <span>会员管理</span>
            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
          </a>
          <ul class="tpl-left-nav-sub-menu"  style="display: block;">
            <li>
              <a href="<?php echo url('user/add'); ?>">
                <i class="am-icon-angle-right"></i>
                <span>会员添加</span>
              </a>
              <a href="<?php echo url('user/lst'); ?>">
                <i class="am-icon-angle-right"></i>
                <span>会员列表</span>
                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
              </a>
            </li>
          </ul>
        </li>

        <li class="tpl-left-nav-item">
          <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
            <i class="am-icon-btc"></i>
            <span>支出管理</span>
            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
          </a>
          <ul class="tpl-left-nav-sub-menu"  style="display: block;">
            <li>
              <a href="<?php echo url('finance/add'); ?>">
                <i class="am-icon-angle-right"></i>
                <span>支出添加</span>
              </a>
              <a href="<?php echo url('finance/lst'); ?>">
                <i class="am-icon-angle-right"></i>
                <span>支出列表</span>
                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
              </a>
            </li>
          </ul>
        </li>

        <li class="tpl-left-nav-item">
          <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
            <i class="am-icon-gear"></i>
            <span>系统管理</span>
            <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
          </a>
          <ul class="tpl-left-nav-sub-menu"  style="display: block;">
            <li>
              <a href="<?php echo url('user/log'); ?>">
                <i class="am-icon-angle-right"></i>
                <span>操作日志</span>
                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
              </a>
            </li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
    <div class="tpl-content-wrapper">

      <ol class="am-breadcrumb">
        <li><a href="#" class="am-icon-home">首页</a></li>
        <li><a href="#">统计</a></li>
        <li class="am-active">内容</li>
      </ol>

      <div class="row">
        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
          <div class="dashboard-stat blue">
            <div class="visual">
              <i class="am-icon-comments-o"></i>
            </div>
            <div class="details">
              <div class="number"> <?php echo $users; ?> </div>
              <div class="desc"> 会员总数 </div>
            </div>
            
          </div>
        </div>

        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
          <div class="dashboard-stat red">
            <div class="visual">
              <i class="am-icon-bar-chart-o"></i>
            </div>
            <div class="details">
              <div class="number"> <?php echo $user; ?> </div>
              <div class="desc"> 新增会员 </div>
            </div>
            
          </div>
        </div>
        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
          <div class="dashboard-stat green">
            <div class="visual">
              <i class="am-icon-apple"></i>
            </div>
            <div class="details">
              <div class="number"> <?php echo $years; ?> </div>
              <div class="desc"> 全年收支 </div>
            </div>
          </div>
        </div>
        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
          <div class="dashboard-stat purple">
            <div class="visual">
              <i class="am-icon-android"></i>
            </div>
            <div class="details">
              <div class="number"> <?php echo $totals; ?> </div>
              <div class="desc"> 本月收支 </div>
            </div>
          </div>
        </div>
      </div>

      <div class="row">

        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
          <div class="dashboard-stat blue">
            <div class="visual">
              <i class="am-icon-comments-o"></i>
            </div>
            <div class="details">
              <div class="number"> <?php echo $incomes; ?> </div>
              <div class="desc"> 本月收入 </div>
            </div>
          </div>
        </div>

        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
          <div class="dashboard-stat red">
            <div class="visual">
              <i class="am-icon-bar-chart-o"></i>
            </div>
            <div class="details">
              <div class="number"> <?php echo $finances; ?> </div>
              <div class="desc"> 本月支出 </div>
            </div>
          </div>
        </div>
        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
          <div class="dashboard-stat green">
            <div class="visual">
              <i class="am-icon-apple"></i>
            </div>
            <div class="details">
              <div class="number"> <?php echo $income; ?> </div>
              <div class="desc"> 今日收入 </div>
            </div>
          </div>
        </div>
        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
          <div class="dashboard-stat purple">
            <div class="visual">
              <i class="am-icon-android"></i>
            </div>
            <div class="details">
              <div class="number"> <?php echo $finance; ?> </div>
              <div class="desc"> 今日支出 </div>
            </div>
          </div>
        </div>
      </div>
      
      <div class="row">
        <div class="am-u-md-12 am-u-sm-12 row-mb">
          <div class="tpl-portlet">
            <div class="tpl-portlet-title">
              <div class="tpl-caption font-green ">
                <i class="am-icon-cloud-download"></i>
                <span> Cloud 收入统计</span>
              </div>
            </div>
            <!--此部分数据请在 js文件夹下中的 app.js 中的 “百度图表A” 处修改数据 插件使用的是 百度echarts-->
            <div class="tpl-echarts" id="tpl-echarts-A">
            </div>
          </div>
        </div>
      </div>
      
    </div>
  </div>
  <!-- js -->
  <script src="/static/admin/assets/js/amazeui.min.js"></script>
<script src="/static/admin/assets/js/iscroll.js"></script>
<script src="/static/admin/assets/js/app.js"></script>
<script src="/static/admin/assets/js/amazeui.switch.js"></script>
<!--后台admin js-->
<script src="/static/admin/admin.js" type="text/javascript"></script>
</body>
<script>
  var pageData = {
    // ===============================================
    // 首页
    // ===============================================
    'index': function indexData() {

        // ==========================
        // 百度图表A http://echarts.baidu.com/
        // ==========================

        var echartsA = echarts.init(document.getElementById('tpl-echarts-A'));
        option = {

            tooltip: {
                trigger: 'axis',
            },
            legend: {
                data: ['本月收入','本月支出']
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            xAxis: [{
                type: 'category',
                boundaryGap: true,
                data: [<?php echo implode(',',$xx)?>]
            }],

            yAxis: [{
                type: 'value'
            }],
            series: [{
              name: '本月收入',
              type: 'line',
              stack: '总量',
              areaStyle: { normal: {} },
              data: [<?php echo implode(',',$ySemData)?>],
              itemStyle: {
                normal: {
                  color: '#32c5d2'
                }
              }
            },
            {
              name: '本月支出',
              type: 'line',
              stack: '总量',
              areaStyle: { normal: {} },
              data: [<?php echo implode(',',$ySeoData)?>],
              itemStyle: {
                normal: {
                  color: '#e7505a'
                }
              }
            }
          ]
        };
        echartsA.setOption(option);
    },
  }
</script>
</html>